package com.custom.jdbc.executebody;

import com.custom.jdbc.executor.convert.TypeMappedHandler;

import java.util.List;

/**
 * 查询Map类型的执行体
 * @author  Xiao-Bai
 * @since  2022/10/25 23:08
 */
public class SelectMapExecutorBody extends BaseSqlExecutorBody {

    private final Class<?> keyType;

    public SelectMapExecutorBody(String prepareSql, boolean sqlPrintSupport, Object[] sqlParams, Class<?> keyType, Class<?> valueType) {
        super(valueType, prepareSql, sqlPrintSupport, sqlParams);
        this.keyType = keyType;
    }

    public Class<?> getKeyType() {
        return keyType;
    }

    public Class<?> getValueType() {
        return getMappedType();
    }


}
